{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "2c959c72",
   "metadata": {},
   "source": [
    "* 日期：2022.08.31\n",
    "\n",
    "* 课程：python\n",
    "\n",
    "* 记录人：liuanyuan"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "1ec2ef61",
   "metadata": {},
   "source": [
    "# 本周学习内容"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "3604d1d8",
   "metadata": {},
   "source": [
    "## 1.准备工作"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e70ecbca",
   "metadata": {},
   "source": [
    "> 1.安装配置python环境（anaconda，清华大学镜像）\n",
    ">> 1. 什么是绝对路径和相对路径\n",
    ">> 2. 配置环境，相对路径有五个需要配置的，绝对路径根据自己的电脑进行配置\n",
    "\n",
    "> 2.回顾：GitHub desktop如何实现本地与云端的链接\n",
    ">> 1. 克隆gitee的仓库URL，到本地的指定文件路径，例如 D:/2022-2023/python\n",
    ">> 2. 上传本地笔记到gitee仓库\n",
    "\n",
    "> 3.本周重点知识([jupyter notebook](https://jupyter.org/))\n",
    ">> 1. 什么是IDE（即集成开发环境）\n",
    ">> 2. 如何打开juypter notebook\n",
    ">>> 1. cmd\n",
    ">>> 2. cd指定目录下\n",
    ">>> 3. 输入：jupyter notebook"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "73bf59de",
   "metadata": {},
   "source": [
    "## 模块（工具箱——不需要知道怎么做的，只需会用就行）"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "19b4e75d",
   "metadata": {},
   "source": [
    "> 1. 标准库（python团队自己开发出来的，想着有人如果用我的编程语言的话，常用的一些功能我已经准备好了）\n",
    ">> 1. 使用标准库的方法：import 模块名称\n",
    ">> 2. [标准库的库](https://docs.python.org/3/library/index.html)\n",
    "> 2. 开源模块（anaconda为例）\n",
    ">> 1. [开源模块](https://pypi.org/)\n",
    "> 3. 自定义模块\n"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "e5bbf708",
   "metadata": {},
   "source": [
    "# P4课后练习"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "7e39b43c",
   "metadata": {},
   "outputs": [],
   "source": [
    "import time"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "id": "6b384245",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "53"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "datetime.today().minute"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "id": "7f6dcc18",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Not an odd minute.\n"
     ]
    }
   ],
   "source": [
    "from datetime import datetime\n",
    "\n",
    "odd=[ 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, 57, 59 ]\n",
    "\n",
    "right_this_minute = datetime.today().minute\n",
    "\n",
    "if right_this_minute in odd:\n",
    "    print(\"This minute seems a little odd.\")\n",
    "else:\n",
    "    print(\"Not an odd minute.\")"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.9.12"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
